<?php
class Zend_View_Helper_LoggedInUser {
	protected $_view;
	function setView($view) { 
		$this->_view = $view; 
	} 
	
	function loggedInUser() {
		$auth = Zend_Auth::getInstance();
		if($auth->hasIdentity()) {
			return $auth->getIdentity();
		}
		return null;
	}
}
?>